package cn.zhizihua.mapper;

import cn.zhizihua.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 增删改查
 * @param <T>
 */
@Mapper
 public interface BaseMapper<T> {
     int add(T t);
     int update(T t);
     int delete(Integer id);
     T getById(Integer id);
     List<T> getAll(BaseQuery baseQuery);
}
